package cn.uniqueinfo.dp.mapper;

import cn.uniqueinfo.dp.vo.FormFieldVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-30 13:37:26
 * @description:表单字段配置，主要用在表单的新增和修改
 */
@Mapper
@Component
public interface FormFieldMapper extends BaseMapper<FormFieldVO> {
    List<FormFieldVO> findByFormName(@Param(value = "form_name") String formName);

    Integer syncField(
            @Param(value = "form_name") String formName,
            @Param(value = "table_name") String tableName);

    Integer deleteByFormName(@Param(value = "form_name") String formName);
}
